package com.JdkProxy.firstexample.Animal.Animalimpl;

import com.JdkProxy.firstexample.Animal.Animal;

/**
 * @User c.c
 * @Since 2022/10/24
 * @Time 8:44
 * @Description
 */
public class Dog implements Animal {
  private int age;
  private String name;

  public Dog() {
  }

  public Dog(int age, String name) {
    this.age = age;
    this.name = name;
  }

  public void wakeup() {
    System.out.println("小狗起床了");
  }

  public void eat() {
    System.out.println("小狗在吃饭");

  }

  public void getActurl(){
    System.out.println("我是动物！！！！！");
  }

  public void sleep() {
    System.out.println("小狗睡觉了");
  }

  public int Animalage() {
    return age;
  }

  public String Animalname() {
    return name;
  }
}
